Dynamic sound masking based on monitoring biosignals and environmental noises

ABSTRACT

Aspects of the present disclosure provide methods, apparatuses, and systems for closed-loop sleep protection and/or sleep regulation. According to an aspect, sleep disturbing noises are predicted and a biosignal parameter is measured to dynamically mask predicted disturbing environmental noises in the sleeping environment with active attenuation. Environmental noises in a sleeping environment of a subject are detected, input, or predicted based on historical data of the sleeping environment collected over a period of time. The biosignal parameter is used to determine sleep physiology of a subject. Based on the environmental noises in the sleeping environment and the determined sleep physiology, the noises are predicted to be disturbing or non-disturbing noises. For predicted disturbing noises, one or more actions are taken to regulate sleep and avoid sleep disruption by using sound masking prior to or concurrently with the occurrence of the predicted disturbing noises.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application claims priority to co-pending U.S. Non-Provisional patent application Ser. No. 16/278,322, entitled “DYNAMIC MASKING WITH DYNAMIC PARAMETERS”, filed Feb. 18, 2019. The aforementioned related patent application is herein incorporated by reference in its entirety.

Aspects of the present disclosure generally relate to closed-loop methods, devices, and systems for regulating or protecting a subject's sleep.

Disruptions to a subject's sleep may result in poor sleep and negatively affect the subject's health. Sleep disruptions may be caused by environmental or ambient noises in the sleeping environment of the subject that interrupt the subject's sleep. To try to block or compensate for such sleep disturbing noises, a static or blanket masking sound may be output in the subject's sleeping environment. However, the static masking sound is typically played throughout the entire time period the subject is sleeping at a constant, unchanging volume and frequency. Depending on the varying volumes and frequencies of the environmental noises and the subject's sleep physiology, the static masking sound may be ineffective at compensating for some sleep disturbing noises, or may itself disrupt the subject's sleep. As such, a need exists for dynamically masking individual environmental noises in a subject's sleeping environment in a manner that is tailored to the subject.

SUMMARY

Aspects of the present disclosure provide methods, apparatuses, and systems for closed-loop sleep protection and/or sleep regulation. According to an aspect, potential sleep disturbing noises are predicted and biosignal parameters of a subject are measured to dynamically mask predicted disturbing noises in the sleeping environment with active attenuation. Based on the predicted disturbing noises and the measured biosignal parameters, one or more actions are taken to regulate sleep and avoid sleep disruption by sound masking prior to or concurrently with the occurrence of the predicted disturbing noises.

According to one aspect, an audio device comprises at least one biosensor for measuring at least one biosignal parameter of a subject and a processing unit. The processing unit is configured to predict a timing of when the environmental noises will occur, and predict whether the environmental noises will disturb the subject's sleep based on the at least one measured biosignal parameter and the predicted timing of the environmental noises to identify predicted disturbing noises. The audio device further comprises at least one speaker for outputting a masking sound prior to occurrence of the predicted disturbing noises.

The processing unit may be further configured to adjust the masking sound based on the at least one measured biosignal parameter and the predicted disturbing noises. Adjusting the masking sound may comprise adjusting at least one of a spectral content of the masking sound or a sound pressure level of the masking sound. The processing unit may be configured to predict whether the environmental noises will disturb the subject's sleep based on the at least one measured biosignal parameter and the predicted timing of the environmental noises further identifies non-disturbing noises to the subject's sleep. The at least one speaker may be configured to refrain from outputting a masking sound in anticipation of the identified non-disturbing noises. The at least one speaker may be configured to gradually increase outputting the masking sound prior to the predicted disturbing noises occurring, and to gradually decrease outputting the masking sound after the predicted disturbing noises have stopped.

The audio device may further comprise at least one microphone for monitoring environmental noises in a vicinity of the audio device. The at least one microphone may be configured to monitor the environmental noises over a time period to determine reoccurring noises and to determine timing and frequency of the environmental noises. The processing unit may be further configured to receive input from the subject regarding known disturbing sounds to mask. The speaker may be further configured to output a masking sound prior to occurrence of the known disturbing sounds. The at least one biosignal parameter may comprise at least one of: a heart rate, heart rate variability, respiration rate, electroencephalogram (EEG), electrooculogram (EOG), electromyogram (EMG), or motion of the subject.

In another aspect, a method for regulating a sleep pattern of a subject comprises measuring at least one biosignal parameter of the subject while the subject is sleeping in the sleeping environment. The biosignal parameter is indicative of a current sleep condition of the subject. The method further comprises predicting whether a potentially disturbing noise will disturb the subject based on the current sleep condition and the potentially disturbing noise to identify a predicted disturbing noise, and outputting a masking sound prior to an occurrence of the predicted disturbing noise.

The method may further comprise adjusting the masking sound prior to outputting the masking sound based on the sleep condition of the subject and the predicted disturbing noise. Adjusting the masking sound may comprise adjusting at least one of: a spectral content of the masking sound or a sound pressure level of the masking sound. The masking sound may be output immediately prior to the occurrence of the predicted disturbing noise. Outputting the masking sound may comprise gradually increasing the masking sound over a first time period prior to the occurrence of the predicted disturbing noise, and gradually decreasing the masking sound over a second time period after the predicted disturbing noise has stopped.

The method may further comprise receiving, from the subject, at least one known disturbing noise to mask prior to outputting the masking sound. The method may further comprise monitoring the at least one biosignal parameter of the subject over a time period to gather historical sleep data of the subject. Predicting when the noise will disturb the subject may be further based on the historical sleep data. The method may further comprise monitoring a sleeping environment of the subject for a potentially disturbing noise over a time period via a microphone.

In yet another aspect, an audio system comprises at least one biosensor for measuring at least one biosignal parameter of a subject over a first time period. One or more values of the biosignal parameter are indicative of a sleep condition of the subject over the first time period. The audio system further comprises a processing unit configured to predict a timing of when the reoccurring ambient noises will occur, predict whether the reoccurring ambient noises will disturb the subject's sleep based on the at least one measured biosignal parameter and the predicted timing of the reoccurring ambient noises to identify predicted disturbing noises, and adjust a masking sound based on the at least one measured biosignal parameter and the predicted disturbing noises. The audio system further comprises at least one speaker configured to gradually increase outputting the masking sound prior to the predicted disturbing noises occurring, and to gradually decrease outputting the masking sound after the predicted disturbing noises are complete.

A first device may comprise the at least one biosensor. The first device may be a wearable device. The first device may further comprise the at least one speaker. The audio system may further comprise at least one microphone for monitoring ambient noises over a second time period to determine reoccurring ambient noises. A second device may comprise the at least one microphone. The second device may be a bedside unit. The second device may further comprise the at least one speaker.

The audio system may further comprise a transceiver configured to receive input from the subject regarding at least one noise that disturbed the subject's sleep. The processing unit may be configured to predict a timing of when the at least one noise will occur and further adjust the masking sound based on the predicted timing. Input from the subject may comprise a recording of the at least one noise.

All examples and features mentioned herein can be combined in any technically possible manner.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 illustrates an example of sleep fragility as a function of stimulus intensity and EEG alpha content.

FIG. 2 illustrates an example audio system in a sleeping environment.

FIG. 3 illustrates example components of an audio device.

FIG. 4 illustrates an example method for dynamically and proactively masking potential sleep disturbing noises in a sleeping environment.

DETAILED DESCRIPTION

A sleep assistance device may include features to perform any one of preparing a subject to fall asleep, initiating the subject's sleep, protecting the subject's sleep, and selectively disrupting the subject's sleep. Aspects of the present disclosure provide methods, devices, and systems configured to collect biometric information associated with a subject and adaptively alter a sound output based on the collected information.

FIG. 1 illustrates an example of sleep fragility as a function of stimulus intensity and EEG alpha content. While the example demonstrates sleep fragility as a function of stimulus intensity and EEG alpha content, other mechanisms may be used to detect sleep stages, either in combination with EEG or alone, such as EOG, accelerometer, RPM, cortical arousals, HRV, PAT/PPG, etc., as discussed further below. A subject's probability of sleep disruption is based, in part, on a condition or physiology of the subject's sleep. A condition of sleep refers to, for example, how deeply the subject is sleeping. As used herein, sleep condition may refer to as sleep physiology, sleep fragility, sleep vulnerability, or terms referring to the likelihood of sleep being disrupted.

In an example, the condition may be associated with sleep stages. Stage N3 sleep is the deepest type of non-rapid eye movement (NREM) sleep. Stage N2 sleep is lighter and more fragile than stage N3 sleep. As illustrated in FIG. 1 , for a same sound intensity, a subject has an increased likelihood of sleep disruption when in stage N2 sleep than when in stage N3 sleep.

In an aspect, biometric information collected from the subject is used to approximate the subject's sleep condition. The sleep condition is used to predict the likelihood the subject's sleep may be disrupted. The effect of ambient or environmental noises on a sleeping subject varies based on the subject's sleep condition as well as the subject's individual sensitivities to such ambient or environmental noises. A same sound is less likely to disrupt a subject in deep sleep as compared to a subject whose sleep is already compromised. Sounds may be adjusted responsive to the condition of the subject's sleep so that a same sound may be masked more when the subject's sleep is compromised as compared to when the subject's sleep is less compromised.

Masking sounds are adjusted based on the subject's determined sleep condition and the environmental noise in the vicinity of the subject. The sound is altered in an effort to adaptively regulate and protect the subject's sleep. As will be described in more detail herein, the sound is altered by one or more of adjusting a sound pressure level (SPL) of a mask, adjusting a spectral content of a mask, or adjusting active noise reduction (ANR) bandwidth and level to mask (i.e., attempt to cover up the perception of) environmental noise based on the subject's determined sleep condition. According to aspects, the masking reduces the perceived loudness from the environment even if the masking does not remove the perception of environmental noise entirely. While the term “masking sound” is used throughout, the described methods, apparatuses, and systems are not limited to outputting and adjusting only masking sounds. The term “masking sound” as used herein includes other such sounds to be played in a sleeping environment, such as soothing sounds, audio therapeutics, relaxation soundtracks, entrainment soundtracks, etc.

Currently, static masking sounds such as shaped noise or ocean soundscapes attempt to help subjects fall and stay asleep; however, subjects may not enjoy listening to sound while falling asleep and subjects may be exposed to long durations of potentially harmful sound levels. Furthermore, based on the subject's changing sleep condition throughout a sleep period, these static masking sounds may disrupt the subject's sleep. Dynamically adjusting the masking properties based on the sleep condition and the environmental noise mitigates these issues by playing masking sounds to mask at reduced levels or altered spectra when able, based on sleep condition, external noise, or both at a given time. Therefore subjects are exposed to less noise, reducing potential acoustic trauma to the auditory system, as masking is played at a sound level necessary to mask external noise in view of a sleep condition. A correct amount of masking is presented to help prevent sleep disturbance.

FIG. 2 illustrates an example audio system 200 in a sleeping environment, according to an aspect. The audio system 200 may be used to dynamically mask predicted disturbing environmental noises in the sleeping environment with active attenuation. In an example, the audio system 200 is configured to anticipate potentially disturbing noises in a subject's sleeping environment, collect biometric information of the subject, and output adjusted sounds based on the potentially disturbing noises and the biometric information collected in an effort to regulate the subject's sleep prior to or concurrently with the potentially disturbing noises occurring. The adjusted sounds may be masking sounds with an adjusted SPL and/or adjusted spectral content. Additionally or alternatively, the sounds may entrain breathing in an effort to regulate sleep. Additionally or alternatively, the audio system 200 may adjust an amount and timing of ANR based on the determined sleep condition and environmental noise in an effort to protect sleep.

The audio system 200 includes headphones 204 and a smartwatch 206, which are shown as being worn by a subject. A headphone 204 refers to a device that fits around, on, or in an ear and that radiates acoustic energy into the ear canal. Headphones 204 are sometimes referred to as earphones, earpieces, headsets, earbuds, or sport headphones, and can be wired or wireless. The headphones 204 may comprise one or more of: a processing unit, a transceiver, one or more biosensors, one or more speakers, and one or more microphones. The headphones 204 may comprise an interface configured to receive input from a subject. A smartwatch 206 may be any type of wearable computer designed to be worn on a wrist of a subject, such as a fitness tracker. The smartwatch 206 may comprise one or more of: a processing unit, a transceiver, one or more biosensors, one or more speakers, and one or more microphones. The smartwatch 206 may comprise an interface configured to receive input from a subject.

The audio system 200 further includes a bedside unit 208 and a smartphone 202. The smartphone 202 may be a mobile phone, tablet, phablet, or laptop computer. The smartphone 202 may comprise one or more of: a processing unit, a transceiver, one or more biosensors, one or more speakers, and one or more microphones. The smartphone 202 may comprise an interface configured to receive input from a subject. The bedside unit 208 may be a stationary smart device, such as a smart speaker. The bedside unit 208 may have any shape and size capable of fitting on a surface in the sleeping environment, such as a dresser, desk, or night table. For instance, the bedside unit 208 may be square, round, rectangular, pyramidal, or oval, as well as short, tall, wide, thick, or thin. The bedside unit 208 may comprise one or more of: a processing unit, a transceiver, one or more biosensors, one or more speakers, and one or more microphones. The bedside unit 208 may comprise an interface configured to receive input from a subject.

The headphones 204, the smartwatch 206, the bedside unit 208, and the smartphone 202 may each include any wired or wireless communication means suitable for use with any other device 202-208 disposed in the sleeping environment, such as WiFi, Bluetooth, Near Field Communications (NFC), USB, micro USB, or any suitable wired or wireless communications technologies known to one of ordinary skill in the art. For example, the headphones 204 may comprise one or more speakers while the bedside unit 208 comprises one or more microphones in communication with the one or more speakers of the headphones 204. Furthermore, the audio system 200 may include one or more of the devices 202-208, and is not required to include each device 202-208 shown. Thus, each device 202-208 in the audio system 200 may be optionally included, and only one device 202-208 is needed to dynamically mask environmental noises.

The devices 202-208 of the audio system 200, either alone or in combination, are configured to: monitor the sleeping environment for potentially disturbing noises, collect historical data on potentially disturbing noises in the vicinity of a subject's sleeping environment, receive input regarding potentially disturbing or non-disturbing noises, determine one or more sound parameters of the potentially disturbing noises, measure one or more biosignal parameters of a subject, collect historical data on a subject's biosignal parameters, predict a timing of when the potentially disturbing noises will occur; predict when a noise will disturb the subject's sleep, refrain from outputting a masking sound in anticipation of identified non-disturbing noises, adjust a masking sound based on the predicted disturbing noises and the measured one or more biosignal parameters in anticipation of predicted disturbing noises, and output the masking sound prior to or concurrently with a predicted disturbing noise occurring in the sleeping environment.

FIG. 3 illustrates example components of an audio device 300, in accordance with certain aspects of the present disclosure. According to an example, the audio device 300 is a wireless wearable audio device. The audio device 300 may be used in an audio system, such as the audio system 200 of FIG. 2 . For instance, the audio device 300 may be any device 202-208 in the audio system 200 of FIG. 2 . In one example, the audio device 300 is the headphones 204 of FIG. 2 . The audio device 300 may be used to dynamically mask predicted disturbing environmental noises in the sleeping environment with active attenuation. In an example, the audio device 300 is configured to anticipate potentially disturbing noises in a subject's sleeping environment, collect biometric information of the subject, and output adjusted sounds based on the potentially disturbing noises and the biometric information collected in an effort to regulate the subject's sleep prior to or concurrently with the potentially disturbing noises occurring. The adjusted sounds may be masking sounds with an adjusted SPL, adjusted timing, and/or adjusted spectral content. Additionally or alternatively, the sounds may entrain breathing in an effort to regulate or protect sleep. Additionally or alternatively, the audio device 300 may adjust an amount and timing of ANR based on the determined sleep condition and environmental noise in an effort to protect sleep.

The audio device 300 includes a memory and processor 302, communication unit 304, a transceiver 306, a biosensor 312, and an audio output transducer or speaker 308. The memory may include Read Only Memory (ROM), a Random Access Memory (RAM), and/or a flash ROM. The memory stores program code for controlling the memory and processor 302. The memory and processor 302 control the operations of the audio device 300. Any or all of the components in FIG. 3 may be combined into multi-function components.

The processor 302 controls the general operation of the audio device 300. For example, the processor 302 performs process and control for audio and/or data communication. In addition to the general operation, the processor 302 outputs adjusted sounds in an effort to regulate a subject's sleep. The processor 302 is configured to measure, receive, calculate, or detect at least one biosignal parameter of the subject. The processor 302 is configured to utilize the biosignal parameter along with the subject's historical sleep data in an effort to determine a current sleep condition of the subject. The processor 302 is configured to determine, detect, or receive information associated with the environmental noise in the vicinity of the subject. The processor 302 is configured to adjust sound based on the subject's sleep condition and the environmental noise. In combination with the audio output transducer 308, the processor 302 is configured to output the adjusted sounds. The processor 302 may be further configured to receive input from a subject, such as input regarding both disturbing noises to mask and non-disturbing noises to refrain from masking. In at least one example, the processor 302 is disposed on another device in an audio system, such as a smartphone, and is in communication with the audio device 300.

In one embodiment, the processor 302 is further configured to determine when a predetermined total noise exposure level is reached or will soon be reached. In response to the total exposure level being reached, the processor 302 may be configured to cease outputting or adjusting masking sounds in response to disturbing noises in an effort to protect a subject's auditory system. In an embodiment where the processor 302 is configured to determine the total exposure level is approaching or will soon be reached, the processor 302 may be configured to reduce outputting or adjusting masking sounds in response to disturbing noises to prevent the total exposure level from being reached and to help protect a subject's auditory system.

The communication unit 304 facilitates a wireless connection with one or more other wireless devices, such as with other devices in an audio system. For example, the communication unit 304 may include one or more wireless protocol engines such as a Bluetooth engine. While Bluetooth is used as an example protocol, other communication protocols may also be used. Some examples include Bluetooth Low Energy (BLE), NFC, IEEE 802.11, WiFi, or other local area network (LAN) or personal area network (PAN) protocols. The audio device 300 may receive audio files wirelessly via the communication unit 304. Additionally or alternatively, the communication unit 304 may receive information associated with a subject's biosignal parameters, obtained via a contactless sensor. Examples of contactless sensors include a radio frequency (RF) sensor or an under-bed accelerometer.

The transceiver 306 transmits and receives information via one or more antennae to exchange information with one or more other wireless devices. The transceiver 306 may be used to communicate with other devices in an audio system, such as a bedside unit, a smartphone, and/or a smartwatch. The transceiver 306 is not necessarily a distinct component.

The audio device 300 includes the audio output transducer 308, which may be also known as a driver or speaker. In some examples, more than one output transducer is used. The transducer 308 (that may be part of a microphone) converts electrical signals into sound and converts sound into electrical signals. The transducer 308 is configured to dynamically output masking sounds. The transducer 308 outputs audio signals, including adjusted audio signals in an effort protect the subject's sleep. For example, the transducer 308 may be configured to adjust audio signals in response to a subject's biosignal parameters. In at least one example, the transducer 308 is disposed on another device in an audio system, such as a bedside unit, and is in communication with the audio device 300.

The audio device 300 optionally includes one or more microphones 310. In an aspect, the microphones 310 are used to detect environmental noises in the vicinity of the audio device 300, and convert the detected noise into electrical signals. In combination with the memory and processor 302, the microphones 310 may be configured to record, track, store, and analyze environmental noises in the vicinity of the audio device 300 over a period of time. The sound parameters or properties of the environmental noises, such as the timing, decibel level, and frequency, may be then determined to collect historical data of noises detected in the vicinity of the audio device 300 or sleeping environment. In at least one example, one or more microphones 310 are disposed on another device in an audio system, such as a bedside unit, and are in communication with the audio device 300.

The audio device 300 optionally includes one or more biosensors 312 used to determine, sense, measure, monitor, or calculate a biosignal parameter of a subject wearing the audio device 300. According to an example, the biosensor 312 is one of a photoplethysmography (PPG) sensor, electroencephalogram (EEG) sensor, electrocardiogram (ECG) sensor, electrooculogram (EOG) sensor, electromyogram (EMG) sensor, accelerometer, a microphone, or other suitable devices. The biosensor 312 may be any sensor configured to determine, sense, measure, monitor, or calculate a subject's biosignal parameter(s). The biosignal parameter(s) may comprise at least one of: a heart rate, heart rate variability, respiration rate, EEG, EOG, EMG, motion of the subject, or other suitable parameters. The biosensor 312 may be further configured to monitor a subject's biosignal parameters over a period of time to collect historical data of the biosignal parameters. The biosignal parameters may be used to determine a sleep condition or sleep physiology of the subject. Based on the sleep condition, an arousal threshold may be determined. The sleep condition may be determined based on one or more of personalized sleep data or historical sleep data collected using a subset of society, or both.

According to an aspect when the audio device 300 is headphones, only one earpiece (ear tip, ear cup) of the audio device 300 includes the biosensor 312. In an aspect, neither earpiece includes a biosensor 312. Instead, a biosensor 312, not on the audio device 300, may remotely detect a biosignal parameter of the subject. In an example, the biosensor 312 detects fluctuations in small arteries (i.e., arterioles) with a sensor, for example, on the finger to determine blood vessel dynamics, which may help to determine the subject's sleep fragility. In an example, the biosensor 312 detects a subject's heartrate or heart rate variability (HRV) with a sensor disposed on the wrist, such as by utilizing a smartwatch. In an example, the biosensor 312 may be a contactless biosensor. The contactless biosensor is configured to report detected biosignal parameters to the processor 302, for example, via the communication unit 304. In at least one example, the biosensor 312 is disposed on another device in an audio system, such as a smartwatch, and is in communication with the audio device 300.

FIG. 3 illustrates communication between certain modules of an example audio device 300; however, aspects of the disclosure are not limited to the specific illustrated example. According to aspects, any module 302-312 is configured to communicate with any other module in the audio device 300. In one example, all modules 302-312 are connected to and communicate with each other.

FIG. 4 illustrates an example method 400 for dynamically and proactively masking potential sleep disturbing noises in a sleeping environment. Method 400 may be implemented utilizing the audio system 200 of FIG. 2 and/or the audio device 300 of FIG. 3 .

At 402, a sleeping environment is optionally monitored for potential sleep disturbing noises. The sleeping environment may be monitored using a microphone, such as the microphone 310 of FIG. 3 . The sleeping environment may be monitored over a period of time to determine reoccurring noises and to determine sound parameters of the detected environmental noises. The microphone may detect various sound parameters of the detected noises, such as the decibel level, the onset and offset, the rate, the timing, and the frequency. In combination with a memory and processor, the microphone may detect environmental noises over a period of time, allowing historical data of the noises in the subject's sleeping environment to be collected and analyzed. The historical data of the noises in the subject's sleeping environment may be used to refine the dynamic masking via a learning algorithm.

At 404, one or more potentially disturbing noises are optionally input into a processing unit. A processing unit, such as the processor 302 of FIG. 3 , or a smart device, such as the smartphone 202 or smartwatch 206 of FIG. 2 , may be configured to receive input from the subject regarding at least one noise that is known to disturb the subject's sleep. The subject may further input one or more non-disturbing noises that the subject does not wish be masked. For example, the subject may wish to hear a baby crying, and may input a baby's crying as a non-disturbing noise to refrain from masking. Additionally, the subject may input various time periods of when to mask or refrain from masking environmental noises. The subject inputting potentially disturbing noises to mask and non-disturbing noises to refrain from masking allows that subject's individual sensitivities and preferences to be taken into consideration, permitting the subject to tailor the dynamic masking as desired.

Such input from the subject may be from a list of pre-selected options, a noise the subject records, or a noise known to occur around the same time in the vicinity of the subject's sleeping environment. The pre-selected options may be a list of noises that are known to either disturb or not disturb sleep selected by a manufacture, disturbing or non-disturbing noises recorded by the subject, or a list of disturbing or non-disturbing noises generated based on the location of the subject's sleep environment. For instance, other users located geographically near the subject's sleeping environment may upload or input noises that were disturbing or non-disturbing to that user's sleep. The subject may then browse the list of user-input noises and select one or more noises the subject predicts will disturb their sleep to mask, or one or more noises the subject predicts will be non-disturbing noises to refrain from masking. In another example, the subject may input, select, or download a schedule of known sleep disturbing noises, such as a train or flight schedule if the subject's sleeping environment is located near train tracks, a train station, an airport, a bus route, etc.

At 406, one or more biosignal parameters of a subject are measured. The biosignal parameters may be measured or monitored using a biosensor, such as the biosensor 312 of FIG. 3 . The one or more biosignal parameters may comprise at least one of: a heart rate, heart rate variability, respiration rate, EEG, EOG, EMG, motion of the subject, or other suitable parameters. One or more values of the biosignal parameters may be indicative of a sleep condition or sleep physiology of the subject over a time period. Based on the sleep condition or physiology, an arousal threshold may be determined. The sleep condition or physiology may be determined based on one or more of personalized sleep data or historical sleep data collected using a subset of society, or both.

In at least one example, the one or more biosignal parameters of the subject are monitored over a time period and analyzed to collect historical sleep data of the subject. For example, the subject's biosignal parameters may be measured every time the subject sleeps in the sleeping environment for several days, such as a week or a month. The subject's biosignal parameters may be analyzed via a learning algorithm each time the biosignal parameters are measured or uploaded. The analyzed biosignal parameters may provide information regarding the subject's threshold to different kinds of environmental noises or masking sounds, allowing the dynamic masking to be uniquely tailored or fine-tuned to the subject. The analyzed biosignal parameters may further provide information regarding the subject's sleep patterns, such as waking or sleep stage cycles or reoccurring events taking place at approximately the same time during a subject's sleep cycle, which may be used to help predict when environmental noises will disturbing the subject's sleep. Additionally, the historical sleep data of the subject may be used in combination with the historical environmental noise data gathered in operation 402 and/or with the input received in operation 404. Thus, the subject's unique stages of sleep relative to different sounds in the sleeping environment may be taken into consideration.

At 408, a timing of when the potentially disturbing noises will occur is predicted. Predicting the timing of when the potentially disturbing noises will occur may be based on the determined reoccurring noises of operation 402 or on the input of operation 404. Additionally, predicting the timing may include predicting a pattern, interval, frequency, volume or decibel level, and/or onset/offset of the potentially disturbing noise. Predicting the timing of the potentially disturbing noises enables the potentially disturbing noises to be anticipated, and as such, enables the masking noise to be dynamic. In an aspect, the potentially disturbing noises are predicted to have already begun, in which case method 400 proceeds to 410.

At 410, a prediction of when a noise will disturb the subject's sleep is made based on the predicted timing of the potentially disturbing noises and the measured one or more biosignal parameters. The prediction may be further based on the sleep condition of the subject and the historical sleep data of the subject. As described above with reference to FIG. 1 , a subject's sleep condition is used to predict the likelihood the subject's sleep may be disrupted, and the effect of environmental noises on a sleeping subject varies based on the subject's sleep condition. Thus, depending on the biosignal parameters and the sleep condition, an environmental noise may be predicted to be a non-disturbing at one time, but as a disturbing noise at another time. If a noise is not predicted to be a sleep disturbing noise, the noise is identified as a non-disturbing noise, and method 400 proceeds to 412. At 412, a masking sound is refrained from being output in anticipation of the identified non-disturbing noise. In one embodiment, the masking sound is refrained from increasing in volume, but may continue to be output at a lower volume or level when noises are identified as non-disturbing.

If a noise is predicted to disturb the subject's sleep, method 400 proceeds to 414. At 414, a masking sound is dynamically adjusted based on the parameters of the predicted disturbing noises and the measured one or more biosignal parameters. The masking sound may further be adjusted based on the sleep condition of the subject, the arousal threshold, and/or the historical sleep data of the subject. Adjusting the masking sound may comprise adjusting a masking sound that is already being output in the sleeping environment, or adjusting or setting the parameters of a masking sound that is to be output in the sleeping environment. Adjusting the masking sound may comprise adjusting at least one of: a spectral content of the masking sound or a SPL of the masking sound. Adjusting the masking noise may further include adjusting the frequency, volume, timing, and rate of the masking sound. For example, if the disturbing noise is relatively quiet, such as around 40 dB, and the subject is in a deep sleep stage, such as stage N3 sleep, the masking noise may be adjusted to a lower volume to compensate for the disturbing noise. Thus, even if the same predicted disturbing noise occurs at the same time every night, the masking noise output may be different depending on the biosignal parameters, the sleep condition/arousal threshold of the subject at that particular time, and data learned or gathered via the learning algorithm.

At 416, the adjusted masking sound is output prior to or concurrently with the predicted disturbing sound occurring. A speaker may be used to output the adjusted masking sound, such as the audio output transducer 308 of FIG. 3 . The speaker may be configured to gradually increase outputting the masking sound prior to the predicted disturbing noise occurring, and to gradually decrease outputting the masking sound after the predicted disturbing noise has ceased. The speaker may be further configured to dynamically and continuously adjust the output of the masking noise if the disturbing noise is a fluctuating, oscillating, or pulsating noise. The speaker may be further configured to output the masking sound immediately prior to or concurrently with the occurrence of the predicted disturbing noise. For example, if a predicted disturbing noise starts off quietly and becomes louder, such as a passing train, the speaker may be configured to output the masking sound immediately prior to or concurrently with the predicted disturbing noise beginning. The speaker may be further configured to dynamically and continuously adjust the output of the masking noise in response to disturbing noises occurring in real-time in the sleeping environment, such as adjusting the masking noise in response to a changing volume or frequency of the disturbing noise.

By utilizing the method and apparatus described above for dynamically and proactively masking potential sleep disturbing noises in a sleeping environment, a subject's sleep may be regulated and/or protected by reducing sleep disruptions. Adjusting a masking noise based on the parameters of the predicted disturbing noise and the subject's biosignal parameters allows the masking to be individually and uniquely tailored to the needs of the subject. Furthermore, dynamically masking environmental noises prior to or concurrently with the occurrence of the predicted disturbing noise enables the noise to be masked in an efficient and effective manner.

According to aspects, methods of protecting sleep are cut off or stopped based on a subject's selections. The subject may select one or more sounds, notices, or alerts which are not to be masked, or which are to be identified as non-disturbing noises. For example, the subject may wish to hear fire alarms, security system notifications, a phone ringing, a crying baby, a doorbell, and/or any other audible notification or alarm. The subject may program the audio device or audio system to recognize these desired sounds. The audio device or audio system may refrain from masking these detected sounds or from applying ANR in the presence of these detected sounds.

According to aspects, the subject may program the audio device or audio system to recognize undesired sounds which may be specific to the subject's environment. In an example, the subject may program the audio device or audio system to recognize a crying baby, a snoring companion, or garbage trucks. The audio device or audio system may mask or noise-cancel (in examples, partially noise-cancel) these detected sounds.

According to an aspect, the desired and undesired sounds may be programmed by any combination of selecting these sounds from a library or recording real-life examples of the sounds for input to the audio device or audio system. The subject may categorize sounds as desired/non-disturbing or undesired/disturbing. The audio device or audio system is configured to analyze components of the ambient noise to identify the selected sounds and categorize them as desired or undesired sounds based on the subject's selections. The audio device or audio system masks the undesired sounds or applies a higher level of ANR for undesired sounds and does not mask the desired sounds or applies a lower level of ANR for desired sounds. Accordingly, selected portions of the ambient noise are selectively masked or are not masked.

In addition to categorizing sounds as desired and undesired, the subject can identify sounds that should be enhanced. For example, a subject may need to hear a crying baby or any other audible notification or alarm at certain times. The subject may program the audio device or audio system to recognize these sounds and enhance them upon detection.

In the preceding, reference is made to aspects presented in this disclosure. However, the scope of the present disclosure is not limited to specific described aspects. Aspects of the present disclosure may take the form of an entirely hardware embodiment, an entirely software embodiment (including firmware, resident software, micro-code, etc.) or an embodiment combining software and hardware aspects that may all generally be referred to herein as a “component,” “circuit,” “module” or “system.” Furthermore, aspects of the present disclosure may take the form of a computer program product embodied in one or more computer readable medium(s) having computer readable program code embodied thereon.

Any combination of one or more computer readable medium(s) may be utilized. The computer readable medium may be a computer readable signal medium or a computer readable storage medium. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a computer readable storage medium include: an electrical connection having one or more wires, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the current context, a computer readable storage medium may be any tangible medium that can contain, or store a program.

The flowchart and block diagrams in the figures illustrate the architecture, functionality and operation of possible implementations of systems, methods and computer program products according to various aspects. In this regard, each block in the flowchart or block diagrams may represent a module, segment or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). In some implementations the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. Each block of the block diagrams and/or flowchart illustrations, and combinations of blocks in the block diagrams and/or flowchart illustrations can be implemented by special-purpose hardware-based systems that perform the specified functions or acts, or combinations of special purpose hardware and computer instructions. 

The invention claimed is:
 1. A method for regulating a sleep pattern of a subject, comprising: analyzing a stored history of at least one biosignal parameter of the subject over a period of time and a stored history of environmental noises over the period of time; determining a timing of when a reoccurring potentially disturbing noise will occur by determining patterns, onsets and offsets, intervals, and frequencies of the environmental noises; obtaining a current measurement of the at least one biosignal parameter of the subject; predicting whether the potentially disturbing noise will disturb the subject based on the analyzing of the stored histories, the determined timing of the potentially disturbing noise, and the current measurement of the at least one biosignal parameter; outputting a masking sound to maintain a current sleep condition based on the analyzing of the stored histories prior to an occurrence of the potentially disturbing noise when the potentially disturbing noise is predicted to disturb the subject.
 2. The method of claim 1, further comprising: upon determining the potentially disturbing noise will not disturb the subject, either refraining from outputting the masking sound or refraining from increasing a volume of a masking sound that is currently being played to the subject.
 3. The method of claim 1, wherein: the analyzing comprises analyzing the stored histories over the period of time determine how the subject reacted to decibel levels, frequencies, and a recorded timing of the environmental noises; and the predicting comprises predicting whether the potentially disturbing noise will disturb the subject based on the obtained current measurement of the of the at least one biosignal parameter and the potentially disturbing noise having similar values to the decibel levels, the frequencies, and the recorded timing.
 4. The method of claim 1, wherein outputting the masking sound to maintain the current sleep condition of the subject comprises: output the masking sound immediately prior to an occurrence of the potentially disturbing noise.
 5. The method of claim 1, wherein outputting the masking sound to maintain the current sleep condition comprises gradually increasing the masking sound over a first time period prior to the potentially disturbing noise, and gradually decreasing the masking sound over a second time period after the potentially disturbing noise has stopped.
 6. The method of claim 1, further comprising: receiving, from the subject, at least one known disturbing noise to mask prior to outputting the masking sound.
 7. A non-transitory computer-readable medium storing instructions which when executed by at least one processor on an audio output device cause the audio output device to perform a method comprising: analyzing a stored history of at least one biosignal parameter of a subject over a period of time and a stored history of environmental noises over the period of time; determining a timing of when a reoccurring potentially disturbing noise will occur by determining patterns, onsets and offsets, intervals, and frequencies of the environmental noises: obtaining a current measurement of the at least one biosignal parameter of the subject; predicting whether the potentially disturbing noise will disturb the subject based on the analyzing of the stored histories, the determined timing of the potentially disturbing noise, and the current measurement of the at least one biosignal parameter; outputting a masking sound to maintain a current sleep condition based on the analyzing of the stored history histories prior to an occurrence of the potentially disturbing noise when the potentially disturbing noise is predicted to disturb the subject.
 8. The computer-readable medium of claim 7, further comprising: upon determining the potentially disturbing noise will not disturb the subject, either refraining from outputting the masking sound or refraining from increasing a volume of a masking sound that is currently being played to the subject.
 9. The computer-readable medium of claim 7, wherein: the analyzing comprises analyzing the stored histories over the period of time to determine how the subject reacted to decibel levels, frequencies, and a recorded timing of the environmental noises; and the predicting comprises predicting whether the potentially disturbing noise will disturb the subject based on the obtained current measurement of the of the at least one biosignal parameter and the potentially disturbing noise having similar values to the decibel levels, the frequencies, and the recorded timing.
 10. The computer-readable medium of claim 7, wherein outputting the masking sound to maintain the current sleep condition of the subject comprises: output the masking sound immediately prior to an occurrence of the potentially disturbing noise.
 11. The computer-readable medium of claim 7, wherein outputting the masking sound to maintain the current sleep condition comprises gradually increasing the masking sound over a first time period prior to the potentially disturbing noise, and gradually decreasing the masking sound over a second time period after the potentially disturbing noise has stopped.
 12. The computer-readable medium of claim 7, wherein the instructions further cause the audio output device to: receive, from the subject, at least one known disturbing noise to mask prior to outputting the masking sound.
 13. An audio output device comprising: at least one processor; and memory coupled to the at least one processor, the memory including code executable by the audio output device to: analyze a stored history of at least one biosignal parameter of a subject over a period of time and a stored history environmental noises over the period of time; determine a timing of when a reoccurring potentially disturbing noise will occur by determining patterns, onsets and offsets, intervals, and frequencies of the environmental noises; obtain a current measurement of the at least one biosignal parameter of the subject; predict whether the potentially disturbing noise will disturb the subject based on the analyzing of the stored histories, the determined timing of the potentially disturbing noise, and the current measurement of the at least one biosignal parameter; output a masking sound to maintain a current sleep condition based on the analyzing of the stored history histories prior to an occurrence of the potentially disturbing noise when the potentially disturbing noise is predicted to disturb the subject.
 14. The audio output device of claim 13, wherein upon determining the potentially disturbing noise will not disturb the subject, the memory further includes code executable by the at least one processor to cause the audio output device to either refrain from outputting the masking sound or refrain from increasing a volume of a masking sound that is currently being played to the subject.
 15. The audio output device of claim 13, wherein: the analyzing comprises analyzing the stored histories over the period of time to determine how the subject reacted to decibel levels, frequencies, and a recorded timing of the environmental noises; and the predicting comprises predicting whether the potentially disturbing noise will disturb the subject based on the obtained current measurement of the of the at least one biosignal parameter and the potentially disturbing noise having similar values to the decibel levels, the frequencies, and the recorded timing.
 16. The audio output device of claim 13, wherein in order to output the masking sound to maintain the current sleep condition of the subject, the memory further includes code executable by the at least one processor to cause the audio output device to: output the masking sound immediately prior to an occurrence of the potentially disturbing noise.
 17. The audio output device of claim 13, wherein in order to output the masking sound to maintain the current sleep condition, the memory further includes code executable by the at least one processor to cause the audio output device to gradually increase the masking sound over a first time period prior to the potentially disturbing noise, and gradually decrease the masking sound over a second time period after the potentially disturbing noise has stopped.
 18. The audio output device of claim 13, wherein the memory further includes code executable by the at least one processor to cause the audio output device to: receive, from the subject, at least one known disturbing noise to mask prior to outputting the masking sound. 